package com.ruoyi.tactics.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum PlayEnum {
    TM("TM", "特码"),
    MZ("MZ", "平码"),
    TC("TC", "特串"),
    EZE("EZE", "二中二"),
    SZE("SZE", "三中二"),
    SZS("SZS", "三中三"),
    WBZ("WBZ", "五不中"),
    WZY("WZY", "五中一"),
    HONB("HONB", "红波"),
    LVB("LVB", "绿波"),
    LANB("LANB", "蓝波"),
    ONE_ZODIAC("ONE_ZODIAC", "一肖"),
    TWO_ZODIAC("TWO_ZODIAC", "二肖"),
    THREE_ZODIAC("THREE_ZODIAC", "三肖"),
    FOUR_ZODIAC("FOUR_ZODIAC", "四肖"),
    FIVE_ZODIAC("FIVE_ZODIAC", "五肖"),
    ;

    private String code;
    private String name;

    public static PlayEnum getEnum(String type){
        for(PlayEnum playEnum : PlayEnum.values()){
            if(playEnum.getCode().equals(type)){
                return playEnum;
            }
        }
        return null;
    }
}
